#pragma once
#include "cdibody.h"

class CdiPlayer : public CdiBody
{
private:
  // Members
  ////////////////////////////

  // Health
  float m_health;

public:

  CdiPlayer(void);
  
  // Constructor to setup new health
  CdiPlayer( float health );

  CdiPlayer( CdiLocation& position, float health );

  virtual ~CdiPlayer(void);

public:
  // Methods
  ////////////////////////////

  // Get Current Health
  float GetHealth() { return m_health; }

  // Set current health
  void SetHealth( float health ) { m_health = health; }

  // Is still currently alive
  bool isAlive() const { return m_health >= 0.0f; }
};
